import ddddocr


def check_image_code(path):
    ocr = ddddocr.DdddOcr(show_ad=False)
    with open(path, 'rb') as img:
        img_bytes = img.read()
    res = ocr.classification(img_bytes)
    return res
